package com.transfiguro.datamodel.csmodels;

import com.transfiguro.datamodel.GenericStatement;
import com.transfiguro.datamodel.Statement;

public class CSForStatement extends GenericStatement{
    private String loop;

    public void setLoop(final String loop) {
        this.loop = loop;
    }

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        result.append(loop).append("{\n");
        if(statements!=null) {
            for(final Statement statement: statements) {
                result.append(statement.toString());
            }
        }
        result.append("\n}\n");
        return result.toString();
    }
}
